import request from "../config/axios";
import { developmentUrl } from "../config/env";

export function getList(params) {
  return request({
    url: `${developmentUrl}/channel/list`,
    method: 'get',
    params
  })
}

export function save(params) {
  return request({
    url: `${developmentUrl}/channel`,
    method: 'post',
    params
  })
}

export function remove(id) {
  return request({
    url: `${developmentUrl}/channel`,
    method: 'delete',
    params: {
      id: id
    }
  })
}
